package com.hightemperator.service;

import com.hightemperator.dao.MessageMapper;
import com.hightemperator.po.MessageAndDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MessageService {
    @Resource
    private MessageMapper messageMapper;
    /**
     * 以下为测试接口
     */
    public List<MessageAndDetail> getMessageByReciverId(Integer reciverId) {
        return messageMapper.getMessageByReciverId(reciverId);
    }

}